home *** CD-ROM | disk | FTP | other *** search
/ IBM InfoROM for OS/2 Beta 1995 January / IBM InfoROM for OS2 Beta 1-1995.ISO / testcert / storage / function / scsi / add / unlkcach.scr < prev    next >
Encoding:
Text File  |  1994-08-08  |  1.6 KB  |  61 lines

  1. * All logical blocks in the specified range that are
  2. * currently locked into the cache memory shall be UNLOCKED.
  3.  
  4. @THREAD UNLKCACH.LOG
  5. @NEWALIAS SADD SCSIADD.GRA
  6. @IMPORT SCSICOM.SCR
  7. SADD DD_OPEN
  8.  
  9. * 0=Async mode, 1=Sync mode
  10. SADD SET MODE=1
  11.  
  12. * Command completion timeout (Secs)
  13. * 0=the assigned value is the default set by the driver,
  14. * -1=the assigned value is infinite.
  15. SADD SET TIMEOUT=0
  16.  
  17. * Name for paramblock
  18. SADD SET LABEL = "READ CAPACITY"
  19.  
  20. SADD READCAPACITY
  21.  
  22. * SADD SET LOGICAL_BLOCK_SIZE = 512
  23. **  SADD SET BUF_CLUSTER_SIZE = 2
  24.  
  25. * 1 : Lock Cache
  26. * 0 : UnLock Cache
  27. SADD SET LOCK_CACHE = 0
  28.  
  29. * 32bit starting logical block addr
  30. SADD SET LOGICAL_BLOCK_ADDR = 0
  31.  
  32. *STARTING LOGICAL BLOCK ADDR
  33. *SADD RESPONSE $PROMPT="ENTER STARTING LOGICAL BLOCK ADDR : " $RESPONSE=LOGICAL_BLOCK_ADDR $PAUSE=15
  34.  
  35. *  0 = indicates that the logical block address field
  36. *      specifies the first logical block of the range of
  37. *      logical blocks to be operated on by this command.
  38. *  1 = indicates that the logical block address field is
  39. *      a two's complement displacement.  This -ve or +ve
  40. *      displacement shall be added to the logical block
  41. *      address last accessed on the logical unit to form the
  42. *      logical block address for this command.
  43. SADD SET ADDR_MODE=0
  44.  
  45. * Reserved - set to zero
  46. SADD SET CDB_BYTE6=0
  47.  
  48. * No. of contiguous logical blocks to be read
  49. SADD SET NUM_BLOCKS = 2
  50.  
  51. *NO. OF CONTIGOUS LOGICAL BLOCKS TO BE READ
  52. *SADD RESPONSE $PROMPT="ENTER # OF LOGICAL BLOCKS : " $RESPONSE=NUM_BLOCKS $PAUSE=15
  53.  
  54. * Name for paramblock
  55. SADD SET LABEL = "UNLOCK CACHE"
  56.  
  57. SADD LOCK_UNLOCK_CACHE
  58.  
  59. SADD DD_CLOSE
  60.  
  61.